//
//  CLContainerViewController.m
//  MasonryTest
//
//  Created by Charles on 16/9/23.
//  Copyright © 2016年 Charles. All rights reserved.
//

#import "CLContainerViewController.h"

@interface CLContainerViewController ()

@property (nonatomic, strong) Class viewClass;

@end

@implementation CLContainerViewController

- (id)initWithTitle:(NSString *)title viewClass:(Class)viewClass {
    if (self = [super init]) {
        self.title = title;
        self.viewClass = viewClass;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view = self.viewClass.new;
    self.view.backgroundColor = [UIColor whiteColor];
}

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
}

#ifdef __IPHONE_7_0
- (UIRectEdge)edgesForExtendedLayout {
    return UIRectEdgeNone;
}
#endif


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
